package cn.tedu.jsd2205the.back.end.project.service.impl;

import cn.tedu.jsd2205the.back.end.project.mapper.CommentMapper;
import cn.tedu.jsd2205the.back.end.project.pojo.vo.CommentVO;
import cn.tedu.jsd2205the.back.end.project.service.ICommentService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.Serializable;
import java.util.List;

@Service
@Slf4j
public class CommentServiceImpl implements ICommentService {
    @Autowired
    private CommentMapper commentMapper;

    public List<CommentVO> selectByProductId(String productId){
        log.debug("根据商品id查询评论");
        return commentMapper.selectByProductId(productId);
    }

}
